package cn.stylefeng.guns.sys.modular.dataClean.mapper;

import cn.stylefeng.guns.sys.modular.dataClean.entity.DataClean;
import cn.stylefeng.guns.sys.modular.dataClean.model.params.DataCleanParam;
import cn.stylefeng.guns.sys.modular.dataClean.model.result.DataCleanResult;
import cn.stylefeng.guns.sys.modular.dataQualityCheck.entity.EtlJob;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 数据清洗表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2020-11-19
 */
public interface DataCleanMapper extends BaseMapper<DataClean> {

    /**
     * 获取列表
     *
     * @author author
     * @Date 2020-11-19
     */
    List<DataCleanResult> customList(@Param("paramCondition") DataCleanParam paramCondition);

    /**
     * 获取map列表
     *
     * @author author
     * @Date 2020-11-19
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") DataCleanParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author author
     * @Date 2020-11-19
     */
    Page<DataCleanResult> customPageList(@Param("page") Page page, @Param("paramCondition") DataCleanParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author author
     * @Date 2020-11-19
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") DataCleanParam paramCondition);

    /**
     * etl_job表插入数据
     * @param paramCondition
     */
    void insertEtlJob(@Param("paramCondition") EtlJob paramCondition);

    /**
     * 删除etl_job记录
     * @param paramCondition
     */
    void deleteEtlJob(@Param("paramCondition") EtlJob paramCondition);


    /**
     * 根据不同条件查询etl_job详情
     * @param paramCondition
     * @return
     */
    List<EtlJob> searchEtlJob(@Param("paramCondition") EtlJob paramCondition);

}
